import request from '@/utils/request';

//根据参数获取文章
export const getArticleListApi = (params: {
  channel_id: number;
  timestamp: number;
}) => {
  return request({
    url: '/v1_0/articles',
    params,
  });
};
//获取文章详情

export const getArticleDetailApi = (id: string) => {
  return request({
    url: '/v1_0/articles/' + id,
  });
};
